package com.json.entity;

import java.util.List;
import java.util.Vector;

import org.w3c.dom.NodeList;

import com.dld.android.util.ReflectionFactory;

public class DlDActivity {

	private String active_name;
	private String cost_price;
	private String curr_price;
	private String discount_rate;

	public String getActive_name() {
		return active_name;
	}

	public void setActive_name(String active_name) {
		this.active_name = active_name;
	}

	public String getCost_price() {
		return cost_price;
	}

	public void setCost_price(String cost_price) {
		this.cost_price = cost_price;
	}

	public String getCurr_price() {
		return curr_price;
	}

	public void setCurr_price(String curr_price) {
		this.curr_price = curr_price;
	}

	public String getDiscount_rate() {
		return discount_rate;
	}

	public void setDiscount_rate(String discount_rate) {
		this.discount_rate = discount_rate;
	}

	public static List<DlDActivity> fromElemList(NodeList ele) throws Exception {
		List<DlDActivity> list = new Vector<DlDActivity>();
		for (int i = 0; i < ele.getLength(); i++) {
			DlDActivity iele = ReflectionFactory.create(ele.item(i),
					DlDActivity.class);
			list.add(iele);
		}
		return list;
	}
}
